package Workflow;

import Model.Draw.Events.DrawCompleteListener;
import Model.Draw.Events.ShowTipListener;
import Workflow.States.Impl.StartUpState;
import java.util.ArrayList;

/**
 * Projeto de TCC: Editor de Diagramas de Comunicação em UML.
 * @author jose.luz
 */
public class WorkflowFactory {

    private static StartUpState startUpState;
            
    public static IWorkflow startWorkflow(){
        IWorkflow workflow = new Workflow();
        startUpState = new StartUpState(new ArrayList<DrawCompleteListener>(), new ArrayList<ShowTipListener>());
        workflow.setStartUpState(startUpState);
        return workflow;
    }
    
    public static void restoreWorkflow(IWorkflow workflow){
        workflow.setStartUpState(startUpState);
    }
}
